home *** CD-ROM | disk | FTP | other *** search
/ CU Amiga Super CD-ROM 2 / CU Amiga Magazine's Super CD-ROM 02 (1996)(EMAP Images)(GB)[!][issue 1996-04].iso / magazine / amiga_e / amigae.sept.archive / 000014_crash!cbos.uc.edu!USR1400A_Sat, 4 Sep 93 06:23:05 PST.msg < prev    next >
Text File  |  1993-11-02  |  1KB  |  26 lines

  1. Received: by bkhouse.cts.com (V1.16/Amiga)
  2.     id AA00000; Sat, 4 Sep 93 06:23:05 PST
  3. Received: from cbos.uc.edu by crash.cts.com with smtp
  4.     (Smail3.1.28.1 #18) id m0oYNWJ-0000QbC; Thu, 2 Sep 93 15:52 PDT
  5. Received: by cbos.uc.edu (3.5/1.0)
  6.         id AA6457; 2 Sep 93 18:55:32 -0400
  7. Return-Path: <USR1400A@cbos.uc.edu>
  8. Date: 2 Sep 93 18:54:00 -0400
  9. Message-Id: <199309021855.AA6457@cbos.uc.edu>
  10. From: USR1400A@cbos.uc.edu
  11. To: amigae@bkhouse.cts.com
  12. Subject: pointer to PROC??
  13.  
  14. The way (or at least one way) to pass a pointer to an E PROC as a parameter
  15. is to use the curley brakets, i.e. {myproc}. Be really sure that you understand
  16. the procedure structure and register usage before you pass an E PROC's address
  17. to an amiga library routine, especially if the referenced proc is executed
  18. directly or indirectly and also especially if the proc (or any nested procs)
  19. it calls references E global variables, i.e. those DEF'ed prior to the first
  20. procedure. It may also of interest to you to know that the curley bracket
  21. method can be used to pass the address of any piece of code, not just a
  22. procedure. To do this just hang a label on the piece of code you wish to
  23. reference and then pass its address to a library procedure by use of the
  24. curley brakets, e.g.  libproc({mylabel})
  25. in this case the program would contain a mylabel: statement somewhere (actually
  26. anywhere) in the program.